package com.xiaoshuidi.cloud.module.rooms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomSdiotDeviceMapping;

import java.util.List;


public interface RoomSdiotDeviceMappingService {
    // todo @黄光辉 接口要写注释
    CommonResult<String> bindingDeviceRoom(RoomSdiotDeviceMapping roomSdiotDeviceMapping);

    CommonResult<String> unbindingDeviceRoom(String deviceThirdNo, Long roomId);


    List<RoomSdiotDeviceMapping> getDeviceListByRoomId(Long roomId);

    RoomSdiotDeviceMapping getRoomIdByDeviceNo(String deviceNo, String deviceType);

    RoomSdiotDeviceMapping getDeviceMapping(String deviceThirdNo);

    RoomSdiotDeviceMapping getRoomIdByDeviceNo(String deviceNo);
}
